/*
 * XML Type:  EmailProfile
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.EmailProfile
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML EmailProfile(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class EmailProfileImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.EmailProfile
{
    
    public EmailProfileImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CANEMAIL$0 = 
        new javax.xml.namespace.QName("", "CANEMAIL");
    private static final javax.xml.namespace.QName CANNOTIFY$2 = 
        new javax.xml.namespace.QName("", "CANNOTIFY");
    
    
    /**
     * Gets the "CANEMAIL" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANEMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANEMAIL$0, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANEMAIL" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANEMAIL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANEMAIL$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANEMAIL" element
     */
    public void setCANEMAIL(net.ofx.types.x2003.x04.BooleanType.Enum canemail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANEMAIL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANEMAIL$0);
            }
            target.setEnumValue(canemail);
        }
    }
    
    /**
     * Sets (as xml) the "CANEMAIL" element
     */
    public void xsetCANEMAIL(net.ofx.types.x2003.x04.BooleanType canemail)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANEMAIL$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANEMAIL$0);
            }
            target.set(canemail);
        }
    }
    
    /**
     * Gets the "CANNOTIFY" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCANNOTIFY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANNOTIFY$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CANNOTIFY" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCANNOTIFY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANNOTIFY$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CANNOTIFY" element
     */
    public void setCANNOTIFY(net.ofx.types.x2003.x04.BooleanType.Enum cannotify)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CANNOTIFY$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CANNOTIFY$2);
            }
            target.setEnumValue(cannotify);
        }
    }
    
    /**
     * Sets (as xml) the "CANNOTIFY" element
     */
    public void xsetCANNOTIFY(net.ofx.types.x2003.x04.BooleanType cannotify)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CANNOTIFY$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CANNOTIFY$2);
            }
            target.set(cannotify);
        }
    }
}
